<extend name="Public/base"/>

<block name="body">

    <div class="main-title">
        <h2>上传表情包</h2>
    </div>
    <form action="{:U('admin/expression/upload')}"enctype="multipart/form-data" method="post" >
        <div class="controls">
            <span class="pull-left" id="upload_button" style="width: 100px;height: 30px;background: #0000ff;color: #fff;line-height: 30px;text-align: center;cursor: pointer;margin: 10px 30px 20px 0;display: inline-block">上传文件</span>
            <span class="pull-left" id="show_info"></span>
            <input type="file" name="pkg" style="display: none" onchange="$('#show_info').html($(this).val())">
        </div>

        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script>
        $('#upload_button').click(function(){
            $('input[type=file]').click();
        })
    </script>
    <script type="text/javascript">
        Think.setValue("type", {$info.type|default=0});
        Think.setValue("group", {$info.group|default=0});
        //导航高亮
        highlight_subnav('{:U('Config/index')}');
    </script>
</block>




